<template>
  <div id="nav">
    <router-link to="/">主页</router-link> |
    <router-link to="/homepage">学校新闻</router-link> |
    <router-link to="/homepage">学校机构</router-link> |
    <router-link to="/about">关于</router-link>
  </div>
  <router-view/>
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  border: 1px solid red;
}

#nav {
  padding: 30px;
    
  a {
    font-weight: bold;
    color: #2c3e50;
    margin: 0px 50px;
    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
